<?php
/**
 * Created by PhpStorm.
 * User: ZhangZhi
 * Date: 2018-12-18 10:41
 */

namespace App\Admin\Controllers;


use App\Core\BaseController;
use Encore\Admin\Facades\Admin;
use Encore\Admin\Layout\Content;

class IndexController extends BaseController
{

    const PAGE_HEADER = " ";
    const PAGE_DESC_INDEX  = " ";
    const PAGE_DESC_CREATE = "新建";
    const PAGE_DESC_UPDATE = "编辑";

    public function index(Content $content)
    {

        $c = get_called_class();
        return $content
            ->header($c::PAGE_HEADER)
            ->description($c::PAGE_DESC_INDEX)
            ->row($this->indexHtmlDco());
    }

    private function indexHtmlDco()
    {
        $title = '北京继续教育学习管理平台';
        $description = '包括：「用户管理」、「项目管理」等等……';

        return view('admin.index.index', compact('title', 'description'));
    }
}